Skip to content

feat(clerk-js): Accept skipInvitationScreen as a prop from OrganizationSwitcher#2713

Merged
panteliselef merged 2 commits intomainfrom
elef/SDK-1278-skip-invite-from-switcher
Feb 5, 2024
Merged

feat(clerk-js): Accept skipInvitationScreen as a prop from OrganizationSwitcher#2713
panteliselef merged 2 commits intomainfrom
elef/SDK-1278-skip-invite-from-switcher

Conversation

@panteliselef
Copy link
Copy Markdown
Contributor

@panteliselef panteliselef commented Feb 2, 2024

Description

skipInvitationScreen should be something that affects the flow of creating an organization. <CreateOrganization/> and <OrganizationList/> already handles this correctly. This PR adds this functionality to <OrganizationSwitcher/> as well.

This implementation is compatible with v4 and does not introduce breaking changes and will be backported.

Grouping skipInvitationScreen and afterCreateOrganizationUrl under createOrganizationProps could be part of a followup PR only for v5.

Checklist

  • npm test runs as expected.
  • npm run build runs as expected.
  • (If applicable) JSDoc comments have been added or updated for any package exports
  • (If applicable) Documentation has been updated

Type of change

  • 🐛 Bug fix
  • 🌟 New feature
  • 🔨 Breaking change
  • 📖 Refactoring / dependency upgrade / documentation
  • other:

Packages affected

  • @clerk/backend
  • @clerk/chrome-extension
  • @clerk/clerk-js
  • @clerk/clerk-expo
  • @clerk/fastify
  • gatsby-plugin-clerk
  • @clerk/localizations
  • @clerk/nextjs
  • @clerk/clerk-react
  • @clerk/remix
  • @clerk/clerk-sdk-node
  • @clerk/shared
  • @clerk/themes
  • @clerk/types
  • build/tooling/chore

@panteliselef panteliselef requested a review from a team February 2, 2024 10:16
@panteliselef panteliselef self-assigned this Feb 2, 2024
@panteliselef panteliselef requested review from brkalow and removed request for a team February 2, 2024 10:16
@changeset-bot
Copy link
Copy Markdown

changeset-bot Bot commented Feb 2, 2024

🦋 Changeset detected

Latest commit: 23aad67

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 11 packages
Name Type
@clerk/clerk-js Minor
@clerk/types Minor
@clerk/chrome-extension Patch
@clerk/clerk-expo Patch
@clerk/backend Patch
@clerk/fastify Patch
gatsby-plugin-clerk Patch
@clerk/nextjs Patch
@clerk/clerk-react Patch
@clerk/remix Patch
@clerk/clerk-sdk-node Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@panteliselef panteliselef requested review from a team and removed request for brkalow February 2, 2024 10:16
@panteliselef panteliselef requested a review from anagstef February 2, 2024 15:19
* @default undefined When left undefined Clerk will automatically hide the screen if
* the number of max allowed members is equal to 1
*/
skipInvitationScreen?: boolean;
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why don't we nest this under createOrganizationProps?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As i mention in the description, I'd like to backport this to v4 as is, in order to follow the same pattern.
I can come back and update the grouping of props for both OrgnanizationSwitcher and OrganizationList only for v5.

Comment thread .changeset/late-geckos-impress.md
@panteliselef panteliselef added this pull request to the merge queue Feb 5, 2024
Merged via the queue into main with commit 9737ef5 Feb 5, 2024
@panteliselef panteliselef deleted the elef/SDK-1278-skip-invite-from-switcher branch February 5, 2024 10:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants